<template>
<Calendar :datas="calendarData" @dateClick="dateClick"></Calendar>
</template>
<script>
  import Calendar from './Calendar.vue';
  import Details from "./Details.vue"
   import moment from "moment";
   components: {
      Calendar,
      Details
    },
   data() {
      return {
        //日历模式存放的数据
        calendarData: [],
         //日历数据加载loading
        calendarLoading: false,
      }
      
   },
 methods: {

     //点击上一月，下一月的事件
      dateClick(date) {

          //自己的获取当前月份的所有数据
          monthList(data).then(res => {
            this.calendarData = res.data;
            this.calendarLoading = false;
          })

        }
      },
 },
</script>